import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'

import Class from '@/pages/Class.vue'
import Index from '@/pages/Index.vue'
import My from '@/pages/My.vue'
import Order from '@/pages/Order.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: Index,
  },
  {
    path: '/index',
    name: 'Index',
    component: Index,
  },
  {
    path: '/class',
    name: 'Class',
    component: Class,
  },
  {
    path: '/my',
    name: 'My',
    component: My,
  },
  {
    path: '/order',
    name: 'Order',
    component: Order,
  },
]

const router = new VueRouter({
  routes,
})

Vue.config.productionTip = false

new Vue({
  router,
  render: (h) => h(App),
}).$mount('#app')
